| |
 |
|
|
|
|
What Is a Collection? |
|
|
|
| |
 |
|
|
|
|
Examples of Built-in Collections |
|
|
|
| |
 |
|
|
|
|
Characteristics of the Built-in Collections |
|
|
|
| |
 |
|
|
|
|
The Forms Collection |
|
|
|
| |
 |
|
|
|
|
For Each . . . Next |
|
|
|
| |
 |
|
|
|
|
Keeping Track of Form Instances |
|
|
|
| |
 |
|
|
|
|
Checking for Instances of Forms |
|
|
|
| |
 |
|
|
|
|
The Controls Collection |
|
|
|
| |
 |
|
|
|
|
The Printer Collection |
|
|
|
| |
 |
|
|
|
|
The Collection Class |
|
|
|
| |
 |
|
|
|
|
Using the Collection Class |
|
|
|
| |
 |
|
|
|
|
Problems with Public Collections |
|
|
|
| |
 |
|
|
|
|
Create Your Own Collection Class |
|
|
|
| |
 |
|
|
|
|
Using the Employees Class |
|
|
|
| |
 |
|
|
|
|
Adding Iteration |
|
|
|
| |
 |
|
|
|
|
Adding the _NewEnum Method |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Review Questions |
|
|
|
| |
 |
|
|
|
|
Exercises |
|
|
|
| |
| |
 |
|
|
|
|
Handling Keystrokes |
|
|
|
| |
 |
|
|
|
|
Uppercase Input |
|
|
|
| |
 |
|
|
|
|
Lowercase Input |
|
|
|
| |
 |
|
|
|
|
Input Numbers Only |
|
|
|
| |
 |
|
|
|
|
Input Characters Only |
|
|
|
| |
 |
|
|
|
|
Limiting Characters |
|
|
|
| |
 |
|
|
|
|
Validating Data |
|
|
|
| |
 |
|
|
|
|
Deadly Embrace and the LostFocus()Event |
|
|
|
| |
 |
|
|
|
|
The Validate Event |
|
|
|
| |
 |
|
|
|
|
The CausesValidation Property |
|
|
|
| |
 |
|
|
|
|
Control Tricks |
|
|
|
| |
 |
|
|
|
|
ToolTips on Controls |
|
|
|
| |
 |
|
|
|
|
Finding a Value in a Combo Box |
|
|
|
| |
 |
|
|
|
|
The Second Method for Finding Values in Combo Boxes |
|
|
|
| |
 |
|
|
|
|
The ComboBox_Click Event |
|
|
|
| |
 |
|
|
|
|
The DataFormat Property |
|
|
|
| |
 |
|
|
|
|
The TabIndex Property and the Label Control |
|
|
|
| |
 |
|
|
|
|
Third-Party Controls |
|
|
|
| |
 |
|
|
|
|
Advantages to Using Third-Party Controls |
|
|
|
| |
 |
|
|
|
|
Disadvantages to Using Third-Party Controls |
|
|
|
| |
 |
|
|
|
|
Additional Functions in Visual Basic |
|
|
|
| |
 |
|
|
|
|
FormatCurrency() |
|
|
|
| |
 |
|
|
|
|
FormatDateTime() |
|
|
|
| |
 |
|
|
|
|
FormatNumber() |
|
|
|
| |
 |
|
|
|
|
FormatPercent() |
|
|
|
| |
 |
|
|
|
|
Round() |
|
|
|
| |
 |
|
|
|
|
StrReverse() |
|
|
|
| |
 |
|
|
|
|
MonthName() |
|
|
|
| |
 |
|
|
|
|
WeekdayName() |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Review Questions |
|
|
|
| |
| |
 |
|
|
|
|
The Connection Object |
|
|
|
| |
 |
|
|
|
|
Properties of the Connection Object |
|
|
|
| |
 |
|
|
|
|
Methods of the Connection Object |
|
|
|
| |
 |
|
|
|
|
Creating a Connection Object |
|
|
|
| |
 |
|
|
|
|
Creating a Connection String |
|
|
|
| |
 |
|
|
|
|
The Recordset Object |
|
|
|
| |
 |
|
|
|
|
Properties of the Recordset Object |
|
|
|
| |
 |
|
|
|
|
Methods of the Recordset Object |
|
|
|
| |
 |
|
|
|
|
Recordset Types |
|
|
|
| |